<?php

namespace app\api\model;

use think\Model;

class BaseModel extends Model
{
    public function prefixImgUrl($value,$data) {
        if ($data['from'] == 1) {
            return  config('setting.img_prefix').$value;
        }else {
            return $value;
        }

    }
}
